package com.wechat.core.constant.enums.support;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.wechat.core.constant.enums.EnumMessage;
import lombok.Getter;

/**
 * 全局响应状态码设置
 *
 */
@Getter
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum RStatus implements EnumMessage {
    
    SUCCESS(200, "成功"),
    FAIL(500, "失败"),
    NO_LOGIN(1000, "没有登录"),
    NO_PERMISSION(3100, "没有权限"),
    INTERNAL_SERVER_ERROR(4001, "服务器内部错误"),
    AUTH_EXPIRES(1002, "授权过期"),
    PRE_DEPOSIT_NOT_ENOUGH(5001, "下单失败"),
    PRICE_CHANGE(6001, "订单价格变化");


    private Integer value;
    
    
    private String message;
    
    RStatus(Integer value, String message) {
        this.value = value;
        this.message = message;
    }
    
}
